package com.cet.designpatterns.mediator;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-23 10:24
 **/
public abstract class Mediator {

    /**
     * 将同事对象加入到集合中
     * @param name
     * @param colleague
     */
    public abstract void register(String name, Colleague colleague);

    /**
     * 接收具体的同事对象发出的消息，处理具体事件
     * @param stateChange
     * @param name
     */
    public abstract void getMessage(int stateChange, String name);


    public abstract void sendMessage();
}
